<?php
$this->pageTitle=Yii::app()->name . t('Error');
$this->breadcrumbs=array(
    t('Error'),
);
$js = "$(document).ready(function() {
        //------------- Some fancy stuff in error pages -------------//
        $('.errorContainer').hide();
        $('.errorContainer').fadeIn(1000).animate({
            'top': \"50%\", 'margin-top': +($('.errorContainer').height()/-2-30)
        }, {duration: 750, queue: false}, function() {
            // Animation complete.
        });
    });";
cs()->registerScript('error-effect',$js,2);
?>

<div class="errorContainer">
    <div class="page-header">
        <h1 class="center"> <?php echo $code; ?> <small>error</small></h1>
    </div>

    <h2 class="center"><?php echo CHtml::encode($message); ?></h2>

    <div class="center">
        <a href="javascript: history.go(-1)" class="btn" style="margin-right:10px;"><span class="icon16 typ-icon-back"></span>Go back</a>
        <a href="<?php echo url('/'); ?>" class="btn"><span class="icon16 cut-icon-screen"></span>Dashboard</a>
    </div>

</div>